
package codeGenerate.front.tempalte;

import java.util.LinkedHashMap;
import java.util.Map;

import codeGenerate.front.vo.FrontConfigVo;

/**
 * 历史框架模版，对应旧代码生成器1.0.3版本
 * TODO javadoc for codeGenerate.mybatis.tempalte.TemPathMybatis
 * @Copyright: 
 * @author: dw-fu1
 * @since: 2018年2月26日
 */
public class TemPathFront extends TemPathFrontAbstract {

	/**
	 * 模版相对根路径
	 */
	private static final String RELATIVE_PATH_ROOT = "/front";

	@Override
	public Map<String, String> getPathMap(FrontConfigVo configVo) {
		Map<String, String> fileMap = new LinkedHashMap<String, String>();
		//前台代码
		String jspPath = configVo.getGenPath() + "/" + configVo.getBeanName();

		fileMap.put(RELATIVE_PATH_ROOT + "/page/view.ftl", jspPath + "/view.html");
		fileMap.put(RELATIVE_PATH_ROOT + "/page/list.ftl", jspPath + "/list.html");
		fileMap.put(RELATIVE_PATH_ROOT + "/page/edit.ftl", jspPath + "/edit.html");
		fileMap.put(RELATIVE_PATH_ROOT + "/page/add.ftl", jspPath + "/add.html");
		return fileMap;
	}

}
